package com.bdqn.serice.impl;

import com.bdqn.serice.SmbmsProviderService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bdqn.mapper.SmbmsProviderMapper;
import com.bdqn.pojo.SmbmsProvider;

import java.util.List;

@Service
public class SmbmsProviderServiceImpl implements SmbmsProviderService {

    @Resource
    private SmbmsProviderMapper smbmsProviderMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return smbmsProviderMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SmbmsProvider record) {
        return smbmsProviderMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(SmbmsProvider record) {
        return smbmsProviderMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(SmbmsProvider record) {
        return smbmsProviderMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(SmbmsProvider record) {
        return smbmsProviderMapper.insertSelective(record);
    }

    @Override
    public List<SmbmsProvider> selectByPrimaryKey() {
        return smbmsProviderMapper.selectByPrimaryKey();
    }

    @Override
    public int updateByPrimaryKeySelective(SmbmsProvider record) {
        return smbmsProviderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SmbmsProvider record) {
        return smbmsProviderMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<SmbmsProvider> selectSmbmsProvider(String proName, String proCode) {
        List<SmbmsProvider> list =smbmsProviderMapper.selectSmbmsProvider(proName,proCode);
        return list;
    }

    @Override
    public SmbmsProvider selectid(Long id) {
        return smbmsProviderMapper.selectid(id);
    }

}
